Web Wiz Forums Documentation
Moving and Renaming the Forum Database
Return to the main menu

Don't let your Forum be hacked! Follow the instructions below to secure your database now!!!

For higher security it is highly recommended that you at the very least rename the Access Database and move the location of the database to a folder above the root directory of your web site where it can not be accessed using a web browser, good web hosts will have a directory set up for this usually called private or db. (If you don't you leave yourself wide open to hackers!!)

  1. Locate the file wwForum.mdb found in the database directory (this is the Forums Access Flat File Database).

  2. Rename and/or move the location of this file on your web space.

  3. Edit the file called 'database_connection.asp', found in the 'database' directory, with a text editor like notepad.

  4. In this file you will find the following line of code: -

    strDbPathAndName = Server.MapPath("database/wwForum.mdb")

  5. Change the part marked in blue (database/), to the new path to the database relative to the main forum directory. (tip: to move up a directory use ../ eg: "../database/wwForum.mdb")

  6. Change the part marked in red (wwForum.mdb), to the new name of the Forum's Access database.

  7. For even higher security remove the part 'Server.MapPath' and use the physical server path to the database, eg. "C:\Inetpub\private\wwForum.mdb"

  8. Save the amended file


Copyright 2001-2006 Bruce Corkhill
Web Wiz Guide, Unit 10E, Dawkins Road Industrial Estate, Poole, Dorset, BH15 4JD, UK